package enums;

public enum  EquipmentTypeEnum {

	ZERO("血压检测",0),
	ONE("血糖检测", 1),
	TWO("胆固醇检测",2),
	three("尿酸检测",3);

	public String key;
	public Integer value;

	EquipmentTypeEnum(String key, Integer value) {
		this.key = key;
		this.value = value;
	}

	public static Integer getValue(String key){
		for(EquipmentTypeEnum comparisonTypeEnum: EquipmentTypeEnum.values()){
			if(key.equals(comparisonTypeEnum.key)){
				return comparisonTypeEnum.value;
			}
		}
		return null;
	}


}
